<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('溯源码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-trace_code" class="form-control" name="row[trace_code]" type="text" value="" placeholder="系统自动生成">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('关联订单')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-order_id" data-rule="required" class="form-control selectpicker" name="row[order_id]" data-live-search="true">
                <option value="">请选择订单</option>
                {foreach $orderList as $id => $orderName}
                <option value="{$id}">{$orderName}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('产品名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_name" data-rule="required" class="form-control" name="row[product_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('产品型号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_model" class="form-control" name="row[product_model]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('客户名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-customer_name" class="form-control" name="row[customer_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('生产开始时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-production_start_time" class="form-control datetimepicker" name="row[production_start_time]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('生产结束时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-production_end_time" class="form-control datetimepicker" name="row[production_end_time]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('生产工序记录')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-production_process" class="form-control" name="row[production_process]" rows="5" placeholder="生产工序记录（JSON格式）"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('质量记录')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-quality_records" class="form-control" name="row[quality_records]" rows="5" placeholder="质量记录（JSON格式）"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('员工记录')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-employee_records" class="form-control" name="row[employee_records]" rows="5" placeholder="员工记录（JSON格式）"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备记录')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-equipment_records" class="form-control" name="row[equipment_records]" rows="5" placeholder="设备记录（JSON格式）"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('材料记录')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-material_records" class="form-control" name="row[material_records]" rows="5" placeholder="材料记录（JSON格式）"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" class="form-control" name="row[remark]" rows="3"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
